package com.example.administrator.myapplication;


import android.os.Bundle;
import android.view.View;

public class MainActivity extends BaseActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState)  {
        super.onCreate(savedInstanceState);
        //设置全屏（在关联布局前）
        setFullScreen();

        setContentView(R.layout.activity_main);

        initTitleBar(-1, "欢迎登陆", -1, null);
        findViewById(R.id.tv_icon).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        startActivity(Main2Activity.class);
    }
}

